package com.anteater.eattheant.view;

public class Rectangle extends Mesh {

	public Rectangle(float height, float width) {
		float[] vert = new float[] { 
				-width / 2.0f, height / 2.0f, 0.0f, // top left
				-width / 2.0f, -height / 2.0f, 0.0f, // bottom left
				width / 2.0f, height / 2.0f, 0.0f, // top right
				width / 2.0f, -height / 2.0f, 0.0f // bottom right
		};
		setVertices(vert);
		
		setIndices(new short[] {0, 1, 2, 1, 3, 2});
	}
}
